# coding=utf-8
from __future__ import print_function, absolute_import

import datetime
import sys
from gm.api import *


# 指数强于深证成指大于0，MAX10 (特定的指数和深证成指比较)
# 上证50 / 沪深300 / 中证500 / 创业板 / 科创50


def index_socre(p_factor=100, p_date=datetime.datetime.now(), p_index_type='SHSE.000016'):
    """
    get_instruments - 查询最新交易标的信息

    history - 查询历史行情
    history_data = history(symbol='SHSE.000300', frequency='1d', start_time='2010-07-28',  end_time='2017-07-30', fields='open, close, low, high, eob', adjust=ADJUST_PREV, df= True)


    :param p_factor:
    :param p_date:
    :param p_index_type: should be one of ’上证50 / 沪深300 / 中证500 / 创业板 / 科创50‘
    :return:
    """


    # SZSE.399001   深证成指 NOTE

    # SHSE.000016	上证50
    # SHSE.000300	沪深300
    # SHSE.000905	中证500
    # SZSE.399006	创业板指
    # NOTE 000688   科创50





    pass




# IF周线多头5,10,20,MAX10
# IF日线多头5,10,20,MAX10
# IF小时多头5,10,20,MAX10

def score(p_factor=100, p_date=datetime.datetime.now(), p_time_type='DAY'):
    """
    技术面MAX40

    :param p_factor: 可以人为手工修改参数，这些参数都在excel<<胜率计算和交易流程20210218>>内
    :param p_date:
    :param p_time_type: should be one of WEEK, DAY, HOUR
    :return:
    """
    rst = 0



    return rst

